
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!--顶栏-->
<header>
    <div style="float:left;"><img src="/static/admin/img/tubiao.png" width="152" height="55" /></div>
    <div style="float: right; display: flex; align-items: center; justify-content: center;">
        <h1 style="font-size: 20px; margin-right: 12px;width: 250px" >欢迎您：${sessionScope.username}</h1>
        <a href="javascript:void(0)" style="font-size: 16px; color: red; margin-right: 12px" onclick="logout();">退出登录</a>
        <i  class="layui-icon  layui-anim layui-anim-rotate layui-anim-loop" style="font-size: 30px; color: #969baa;">&#xe614;</i>&nbsp; &nbsp; &nbsp;
    </div>
</header>
<script>
    function logout(){
        // 退出登录
        if(window.confirm('是否确认退出登录？')){
            window.location.href = "/login.jsp";
        }
    }
</script>